package totoCharts;

import com.google.appengine.api.datastore.Key;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;@PersistenceCapable(identityType = IdentityType.APPLICATION)
/*
 * this class represents the WaveID object. every time a new gadget is installed,
 * it requests for a waveID. when we create the waveID object, we'll save it in the
 * DB
 */
public class globalWaveID {
	@PrimaryKey    
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)    
	private Key key;    
	@Persistent
	private int waveID;
	
	public globalWaveID(){
		this.waveID=0;
	}
	
	public void setWaveID(int waveID) {
		this.waveID = waveID;
	}
	public int getWaveID() {
		return waveID;
	}

	public Key getKey() {
		return key;
	}
}
